﻿using System;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;
namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IUNC
    {
        [OperationContract]
        int UNC_Using(int UNCID);

        [OperationContract]
        DataSet UNC_GetAll();

        [OperationContract]
        UNCInfo UNC_GetInfo(int UNCID);

        [OperationContract]
        DataSet UNC_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        int UNC_Insert(UNCInfo eInfo);

        [OperationContract]
        bool UNC_Update(UNCInfo eInfo);

        [OperationContract]
        bool UNC_Delete(int UNCID);

        [OperationContract]
        bool UNC_CheckExist(int _ID, string BranchCode, DateTime _Date, string _No);

        [OperationContract]
        decimal UNC_GetAmountPaid(int _Month, int _Year, string BranchCode);
    }
    [DataContract(Namespace = "http://HRMService")]
    public class UNCInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _No;
        [DataMember]

        public string No
        {
            get { return _No; }
            set { _No = value; }
        }

        DateTime _Date;
        [DataMember]
        public DateTime Date
        {
            get { return _Date; }
            set { _Date = value; }
        }
        int _Month;
        [DataMember]
        public int Month
        {
            get { return _Month; }
            set { _Month = value; }
        }


        string _Quater;
        [DataMember]
        public string Quater
        {
            get { return _Quater; }
            set { _Quater = value; }
        }

        int _Year;
        [DataMember]
        public int Year
        {
            get { return _Year; }
            set { _Year = value; }
        }
        string _BranchCode;
        [DataMember]

        public string BranchCode
        {
            get { return _BranchCode; }
            set { _BranchCode = value; }
        }
        string _Content;
        [DataMember]

        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }


        string _Discription;
        [DataMember]
        public string Discription
        {
            get { return _Discription; }
            set { _Discription = value; }
        }
        decimal _Amount;
        [DataMember]

        public decimal Amount
        {
            get { return _Amount; }
            set { _Amount = value; }
        }
    }

}
